package com.rfid.project.service;

public class ProcessStatus {
	
	//未领取
	public static final String NOVEL = "0001";
	//未查看
	public static final String NEW = "0010";
	//进行中
	public static final String WORKING = "0055";

	//已发送
	public static final String SENDED = "0060";
	//已查看
	public static final String READED = "0065";
	
	//撤销申请
	public static final String ANNUL = "0070";
	
	//申请完成
	public static final String FINISH_APPLY = "0100";
	//申请延期
	public static final String DELAY_APPLY = "0200";
	
	//质量不合格
	public static final String QUALITY_FAIL = "0999";
	//质量合格
	public static final String QUALITY_SUCCESS = "1000";
	
	//审核不通过
	public static final String EXAMINE_FAIL = "2001";
	//审核通过
	public static final String EXAMINE_SUCCESS = "3000";
	
	//复核不通过
	public static final String VERIFY_FAIL = "4001";
	//复核通过
	public static final String VERIFY_SUCCESS = "5000";
	
	//已完成
	public static final String SUCCESS = "9000";
	
	public static String processStatusName(String statusCode){
		String statusName = "[未知]";
		if(NOVEL.equals(statusCode)){
			statusName = "未领取";
		}else if(NEW.equals(statusCode)){
			statusName = "未查看";
		}else if(WORKING.equals(statusCode)){
			statusName = "进行中";
		}else if(SENDED.equals(statusCode)){
			statusName = "已发送";
		}else if(READED.equals(statusCode)){
			statusName = "已查看";
		}else if(ANNUL.equals(statusCode)){
			statusName = "撤销申请";
		}else if(DELAY_APPLY.equals(statusCode)){
			statusName = "申请延期";
		}else if(FINISH_APPLY.equals(statusCode)){
			statusName = "申请完成";
		}else if(QUALITY_FAIL.equals(statusCode)){
			statusName = "质量不合格";
		}else if(QUALITY_SUCCESS.equals(statusCode)){
			statusName = "质量合格";
		}else if(EXAMINE_FAIL.equals(statusCode)){
			statusName = "审核不通过";
		}else if(EXAMINE_SUCCESS.equals(statusCode)){
			statusName = "审核通过";
		}else if(VERIFY_FAIL.equals(statusCode)){
			statusName = "复核不通过";
		}else if(VERIFY_SUCCESS.equals(statusCode)){
			statusName = "复核通过";
		}else if(SUCCESS.equals(statusCode)){
			statusName = "已完成";
		}
		
		return statusName;
	}
}
